package com.example.travel_front.Model;

public class Message {
    private int id;
    private int chatId;
    private String content;
    private boolean isSent; // true if the message was sent by the user, false if received

    public Message(String content, boolean isSent,int chatId) {
        this.content = content;
        this.isSent = isSent;
        this.chatId = chatId;
    }

    public int getChatId() {
        return chatId;
    }

    public void setChatId(int chatId) {
        this.chatId = chatId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setSent(boolean sent) {
        isSent = sent;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    // Getters
    public String getContent() {
        return content;
    }

    public boolean isSent() {
        return isSent;
    }
}

